package com.rc.saas.mini.service.tenant;

import com.rc.saas.mini.mapper.tenant.TenantNoticeMapper;
import com.rc.saas.mini.model.tenant.TenantNotice;
import com.rc.saas.mini.vo.tenant.TenantNoticeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class TenantNoticeServiceImpl implements TenantNoticeService {
    @Autowired
    private TenantNoticeMapper tenantNoticeMapper;

    @Override
    public TenantNoticeMapper getMapper() {
        return tenantNoticeMapper;
    }

    @Override
    public List<TenantNoticeVo> listByConditionWithMemberId(TenantNoticeVo tenantNoticeVo) {
        return tenantNoticeMapper.listByConditionWithMemberId(tenantNoticeVo );
    }

    @Override
    public List<TenantNotice> listByMemberIdAndDate(Long memberId, Date date) {
        return tenantNoticeMapper.listByMemberIdAndDate(memberId,date);
    }
}
